package com.techstar.ats.codec.resume.encoder;

import io.netty.buffer.ByteBuf;
import com.techstar.ats.codec.DateTimeCodec;
import com.techstar.ats.codec.MessageEncoder;
import com.techstar.ats.dxp.resume.req.F24ResumeAsk;

public enum F24ResumeAskEncoder implements MessageEncoder<F24ResumeAsk> {
	INSTANCE;

	public void encodeBody(ByteBuf buf, F24ResumeAsk value) {
		buf.writeShort(value.line);
		DateTimeCodec.INSTANCE.encode(buf, value.begin);
		DateTimeCodec.INSTANCE.encode(buf, value.end);
	}

	public int bytes(F24ResumeAsk value) {
		return 16;
	}
}
